#include <stdio.h>
#include <conio.h>
int ktr(char s[])
{
    char c[100];
    strcpy(c,s);
    if(strcmp(s,strrev(c))==0)
        return 1;
    else
        return 0;
}
main()
{
    FILE *f;
    int n,i;
    char s[100][100];
    if(!freopen("vd.inp","r",stdin))
        return 0;
    if(!freopen("vd2.out","w",stdout))
        return 0;
    scanf("%d",&n);
    while(getchar()!='\n');
    i=0;
    while(i!=n)
    {

        gets(s[i]);
        i++;
    }
    i=0;
    while(i!=n)
    {
        if(ktr(s[i]))
            printf("yes\n");
        else
            printf("no\n");
        i++;
    }
}



